//
//  SVProgressHUD+FGExtension.h
//  KeyWordsFilter
//
//  Created by LWF on 2018/5/10.
//  Copyright © 2018年 杭州东九网络科技有限公司. All rights reserved.
//
//自定义图片加载不出来 设置： [SVProgressHUD setShouldTintImages:NO]; 用完设置回来
#import <SVProgressHUD/SVProgressHUD.h>

NS_ASSUME_NONNULL_BEGIN

@interface SVProgressHUD (FGExtension)


/**    继续原来的show     */
+ (void)continueShow;
/**    当前status     */
+ (nullable NSString *)status;

+ (void)setProgressValueColor:(UIColor *)progressValueColor;

+ (void)showSuccessWithStatus:(nullable NSString *)status duration:(NSTimeInterval)duration;
+ (void)showSuccessWithStatus:(nullable NSString *)status completion:(nullable SVProgressHUDDismissCompletion)completion;
+ (void)showSuccessWithStatus:(nullable NSString *)status duration:(NSTimeInterval)duration completion:(nullable SVProgressHUDDismissCompletion)completion;

+ (void)showErrorWithStatus:(nullable NSString *)status duration:(NSTimeInterval)duration;
+ (void)showErrorWithStatus:(nullable NSString *)status completion:(nullable SVProgressHUDDismissCompletion)completion;
+ (void)showErrorWithStatus:(nullable NSString *)status duration:(NSTimeInterval)duration completion:(nullable SVProgressHUDDismissCompletion)completion;

+ (void)showWithStatus:(nullable NSString *)status duration:(NSTimeInterval)duration;

/**    HUD竖直方向位置摆放     */
+ (void)positionY:(CGFloat)y;
+ (void)resetPosition;
/**    设置HUD黑白样式 isBlack: YES黑色     */
+ (void)customHUDStyleIsBlack:(BOOL)isBlack;

#pragma mark - 通用方法
/**    自定义图片 用此方法     */
+ (void)showImage:(nullable UIImage *)image status:(nullable NSString *)status duration:(NSTimeInterval)duration completion:(nullable SVProgressHUDDismissCompletion)completion;

@end

NS_ASSUME_NONNULL_END


